<template>
  <div>
      名字：<input v-model.lazy="name" type="text">
  </div>
</template>

<script>
export default {
    data(){
        return{
            name:''
        }
    },
    watch:{
        name(newName,oldName){
            console.log(newName,oldName);
        }
    }

}
</script>

<style>

</style>